import{e as _,d as f,s as w,a as v}from"./usePageTransition.a604dd65.js";import{_ as x,o,c as i,b as m,F as y,v as H,E as T,l as p,w as C,f as L,m as k,a as E,u as $}from"./entry.14b1def9.js";import{u as z}from"./useAsyncNavigationData.10beaa25.js";import{u as M}from"./usePageLoading.4002c363.js";const N={data(){return{isMounted:!1,windowHeight:0}},setup(){return{pageTheme:_()}},computed:{classes(){return[]},themeClass(){return`theme-${this.pageTheme??"light-gray"}`},lineCount(){return this.isMounted?Math.ceil(this.windowHeight/24):36}},mounted(){this.isMounted=!0,this.windowHeight=window.innerHeight,window.addEventListener("resize",this.updateHeight)},beforeDestroy(){this.isMounted=!1,window.removeEventListener("resize",this.updateHeight)},methods:{updateHeight(){this.windowHeight=window.innerHeight}}},A={class:"flex items-center h-full"},S={class:"w-full mt-spacing-7 pb-spacing-7","aria-hidden":"true"};function b(a,s,r,n,u,e){return o(),i("div",{class:p([e.themeClass,"fixed inset-0 z-[999] shutter-transition"])},[m("div",A,[m("div",S,[(o(!0),i(y,null,H(e.lineCount,t=>(o(),i("div",{key:t,class:"shutter-row overflow-hidden",style:T(`--shutter-delay: ${(e.lineCount-t)*7.5}ms`)},null,4))),128))])])],2)}const B=x(N,[["render",b]]),q={__name:"app",async setup(a){var d,h;let s,r;const n=f(),{data:u,error:e}=([s,r]=C(()=>z()),s=await s,r(),s);!e.value&&w((d=u.value)==null?void 0:d.navigation),!e.value&&v((h=u.value)==null?void 0:h.social);const t=L(),c=M();return t.hook("page:start",()=>{c.value=!0,document.documentElement.classList.remove("scroll-smooth")}),t.hook("page:finish",()=>{const l=n.value=="simple"?150:600;c.value=!1,setTimeout(()=>{n.value="simple"},l+100)}),t.hook("page:transition:finish",()=>{window.scrollTo(0,0),document.documentElement.classList.add("scroll-smooth")}),(l,P)=>{const g=B;return o(),i("div",{class:p(`${$(n)}-transition`)},[k(l.$slots,"default"),E(g)],2)}}};export{q as default};